package com.sakiko.ioc_05;

import org.springframework.stereotype.Service;

public class UserService {

    private UserDao userDao = null;

    // 无论是引用类还是非引用类 xml属性赋值都需要有 set()方法
    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    public void findAll(){
        userDao.query();
    }

}
